package com.jinghong.registerlogin.service;


import com.jinghong.registerlogin.model.pojo.Result;
import com.jinghong.registerlogin.model.pojo.User;

/**
 * ClassName:AdministratorService
 * Package:com.jingjian.gamesetupapp.service
 * Description:
 *
 * @Author: 寻月君子
 * @CreatTime:2023/12/18 20:12
 * Version:1.0
 */
public interface UserService {


    User findByUserName(String username);

    Result register(String username, String password);

    void update(User user);

    void updateIsAdmin(Integer userId, Integer isAdmin);

    Result loginByUserName(String username, String password);

    Result updatePassword(String username, String oldPassword, String password);
}
